package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.sys.SysRole;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface SysRoleService {
    PageInfo<SysRole> list(Integer pageNum, Integer pageSize, String keyword);

    void save(SysRole sysRole);

    void deleteByIds(List<Long> asList);

    SysRole getById(Long id);

    void update(SysRole sysRole);

    List<SysRole> list();

    List<SysRole> listAllRolesAndIsChecked(Long userId);

    void assignMenus2Role(Long id, List<Long> menuIds);
}
